fix -Wstrict-prototypes warning
authorDominique Martinet <dominique.martinet@atmark-techno.com>
Wed, 24 Nov 2021 00:27:04 +0000 (09:27 +0900)
committerDominique Martinet <dominique.martinet@atmark-techno.com>
Wed, 24 Nov 2021 00:28:26 +0000 (09:28 +0900)
commit670187f06afb257223d688feecdcdac8161a2b27
treeaeae46c37cc99213beebb3b2d07398f5f0640372
parent1b36f8b5e0ecb633afb617282804a0be6e081dfc
fix -Wstrict-prototypes warning

function declarations should always explicitly say no argument is expected,
as in C 'foo bar()' means bar can take any parameter.

This was noticed when building another project with -Wall -Wextra and getting
the following warning on installed header:
/usr/include/zck.h:66:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   66 |     __attribute__ ((warn_unused_result));
      |     ^~~~~~~~~~~~~
/usr/include/zck.h:325:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  325 |     __attribute__ ((warn_unused_result));
      |     ^~~~~~~~~~~~~
include/zck.h.in